package com.jy.api.vo.admin.workshift;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by lihu on 2017/8/31.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WorkshiftVo {

    /* 总条数**/
    private long totalElements = 0;

    /* 总页数**/
    private int totalPages = 0;


    private List<WorkShift> workShifts = new ArrayList<WorkShift>();


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class WorkShift {

        private String id;
        private String storeId;
        private String storeName;
        private Date beginTime;
        private Date endTime;
        private boolean transactionEnable;
        /**
         * 开班人id
         */
        //TODO: 修改名称更好反映开班
        private String operatorId;
        /**
         * 开班人名称
         */
        //TODO: 修改名称更好反映开班
        private String operatorName;

        /*
         * 开班人员工 工号
         */
        private String operatorCode;
        /**
         * 交班用户id
         */
        private String closeUserId;
        /**
         * 交班用户名称
         */
        private String closeUsername;

        private double turnInAmount;
        private double cashAmount;
        private double alipayAmount;
        private double wechatAmount;
        private double memberAmount;
        private double alipayCashAmount;
        private double wechatCashAmount;
        private double gapAmount;
        private int couponAmount = 0;
        private String gapReason;
        private double leaseAmount;
        /**
         * 退款金额
         */
        private double refundAmount;

    }

    public WorkshiftVo(long totalElements, int totalPages) {
        this.totalElements = totalElements;
        this.totalPages = totalPages;
    }
}
